Fix: restore “Run tests by group” command after refactor#346
Merged
recca0120 merged 2 commits intorecca0120:mainfrom Feb 15, 2026
Merged
Fix: restore “Run tests by group” command after refactor#346recca0120 merged 2 commits intorecca0120:mainfrom
recca0120 merged 2 commits intorecca0120:mainfrom
Conversation
Add phpunit.run-by-group command that displays a quick pick menu of all available PHPUnit groups (from @group annotations or #[Group] attributes) and runs the selected group's tests. - Add TestCollection.findGroups() to collect unique group tags - Add TestCollection.findTestsByGroup() to filter tests by group tag - Add TestRunHandler.startGroupTestRun() to execute group-filtered runs with --group flag and force single process mode - Add show
…empty Reload test files before showing group picker if findGroups() returns empty, ensuring groups are available even when tests haven't been preloaded. Pass TestRunProfile to startGroupTestRun() so the request uses the correct profile context. - Add reloadAll() call in runByGroup() when groups.length === 0 - Add profile parameter to TestRunHandler.startGroupTestRun() - Pass profile to TestRunRequest constructor in startGroupTestRun()
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #346 +/- ##
===========================
===========================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restores end-to-end “run tests by group” support by bringing back the missing command + runner wiring.
Problem
Group tags/filtering exist in the UI, but after the recent refactor there was no longer a way to run an entire group (the
phpunit.run-by-groupcommand + execution path were missing), so the correct--group=<name>CLI args were never invoked.Changes
PHPUnit: Run tests by group(phpunit.run-by-group)--group=<selected>findGroups,findTestsByGroup)How to test (manual)
npm cinpm run compileF5to launch the Extension Development Host@group/#[Group]PHPUnit: Run tests by groupintegration)--group=<name>and only those tests execute